package session.stateless.SCM;

import entity.SCM.Supplier;
import javax.ejb.Local;

@Local
public interface SupplierBeanLocal {

    public boolean deleteSupplyItem(java.lang.Long supplyItemId);

    public java.lang.String createSupplier(java.lang.String supplierName, java.lang.String supplierAddress, java.lang.String supplierPostCode, java.lang.String supplierContactNo, java.lang.String supplierEmail, java.util.List<entity.SCM.SupplyItem> supplyItemList);

    public boolean updateSupplier(java.lang.String supplierName, java.lang.String supplierAddress, java.lang.String supplierPostCode, java.lang.String supplierContactNo, java.lang.String supplierEmail, java.util.List<entity.SCM.SupplyItem> supplyItemList);

    public boolean deleteSupplier(java.lang.String supplierName);

    public entity.SCM.Supplier getSupplier(java.lang.String name);

    public java.util.List<entity.SCM.Supplier> getSupplierForMaterial(java.lang.String materialName);

    public java.util.List<entity.SCM.Supplier> getAllSupplier();

    public java.util.List<entity.RawMaterial> getAllMaterial();

    public java.util.List<entity.SCM.Supplier> getSupplierForOrder(java.util.List<entity.SCM.MaterialLine> mls);
    
    public Supplier findSupplierByName(String supplierName);
}
